import request from '@/utils/request'
import { baseUrl } from '@/config/env';

//概况数据接口返回昨日平台广告收益和本月订阅收益
export const getGeneral = () => {
  return request({
    url: baseUrl+'/rest/article/sumArticleAmount',
    method: 'get',
  })
}

//数据详情（按天)
export const getDetailTable = (beginDate, endDate) => {
  return request({
    url: baseUrl+'/rest/article/dayArticleAmount',
    method: 'get',
    params: {
      beginDate,
      endDate,
    }
  })
}

